package com.example.demo.dto;

public class ResultDTOBuilder {
    public static ResultDTO success(){
        return new ResultDTO("success","200","no message",new Object());
    }
    public static ResultDTO success(Object data){
        return new ResultDTO("success","200","no message",data);
    }
    public static ResultDTO fail(){
        return new ResultDTO("fail","250","no message",new Object());
    }
    public static ResultDTO fail(Object data){
        return new ResultDTO("fail","250","no message",data);
    }
    public static ResultDTO selfSetting(String result,String code,String message,Object data){
        return new ResultDTO(result,code,message,data);
    }
}
